<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加笔记</title>
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}" media="all">
    <script type="text/javascript" th:src="@{/layui/layui.js}"></script>
    <script type="text/javascript" th:src="@{/js/jquery-3.3.1.min.js}"></script>
</head>
<style>
    body{margin: 10px;}
</style>
<body>
<div>
    <input id="adviceMsg" type="hidden" th:value="${adviceMsg}">
    <form action="/user/advice" method="post">
        <input name="id" type="hidden" th:value="${session.user.id}"/>
        <div class="layui-input-block">
            <textarea  name="advice" cols="2"   rows="6"   style="OVERFLOW:   hidden;width: 300px;height: 180px;" placeholder="请输入您的宝贵意见"></textarea>
        </div>
        <button class="layui-btn" lay-submit=""  style="margin-left:112px;margin-top:10px" >提交</button>
    </form>
</div>
<script>
    layui.use(['table','form','element'], function () {
        var msg=$('#adviceMsg').val();
        if(msg!=null&&msg!==''){
            layer.msg(msg);
        }
    });
</script>


</body>
</html>
</body>
</html>